<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "mops_product".
 *
 * @property int $id
 * @property string $name 名称
 * @property string $brand_catalog 品牌
 * @property int $image 图片
 * @property int $created_at 创建时间
 * @property int $updated_at 创建时间
 */
class Product extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'mops_product';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['image', 'created_at', 'updated_at'], 'integer'],
            [['name', 'brand_catalog'], 'string', 'max' => 30],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'name' => 'Name',
            'brand_catalog' => 'Brand Catalog',
            'image' => 'Image',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
